﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp_i1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            if (SQL.i == 20) { label1.Text = "你已背完全部单词"; }
            else { label1.Text = SQL.GetNext(); }
            label2.Text = "";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (SQL.GetEnglish() == textBox1.Text)
            {
                label2.Text = "正确";
            }
            else label2.Text = "错误";
        }
    }
}
